CREATE TABLE [dbo].[TDDISP_CBAK]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_PROV] [dbo].[TD_VC_020] NOT NULL,
[CO_TIPO_DOCU] [dbo].[TD_VC_003] NOT NULL,
[NU_DOCU_PROV] [dbo].[TD_VC_020] NOT NULL,
[NU_CORR] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TDDISP_CB__NU_CO__17E28260] DEFAULT ((0)),
[TI_AUXI_EMPR] [dbo].[TD_VC_001] NULL,
[CO_CENT_COST] [dbo].[TD_VC_020] NULL,
[CO_CNTA_EMPR] [dbo].[TD_VC_020] NULL,
[CO_ORDE_SERV] [dbo].[TD_VC_020] NULL,
[TI_DOCU] [dbo].[TD_VC_003] NULL,
[NU_DOCU] [dbo].[TD_VC_020] NULL,
[ST_DIST] [dbo].[TD_VC_001] NULL,
[PO_DIST] [dbo].[TD_NU_009_004] NULL CONSTRAINT [DF__TDDISP_CB__PO_DI__18D6A699] DEFAULT ((0)),
[IM_BRUT_AFEC] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_BR__19CACAD2] DEFAULT ((0)),
[IM_BRUT_INAF] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_BR__1ABEEF0B] DEFAULT ((0)),
[IM_DCT1] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_DC__1BB31344] DEFAULT ((0)),
[IM_DCT2] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_DC__1CA7377D] DEFAULT ((0)),
[IM_IMP1] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_IM__1D9B5BB6] DEFAULT ((0)),
[IM_IMP2] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_IM__1E8F7FEF] DEFAULT ((0)),
[IM_IMP3] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_IM__1F83A428] DEFAULT ((0)),
[IM_GAFI] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_GA__2077C861] DEFAULT ((0)),
[IM_MORA] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_MO__216BEC9A] DEFAULT ((0)),
[IM_FLET] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_FL__226010D3] DEFAULT ((0)),
[IM_DIST] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_DI__2354350C] DEFAULT ((0)),
[IM_TOTA] [dbo].[TD_NU_016_004] NULL CONSTRAINT [DF__TDDISP_CB__IM_TO__24485945] DEFAULT ((0)),
[DE_OBSE] [dbo].[TD_VC_100] NULL,
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TDDISP_CB__CO_US__253C7D7E] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TDDISP_CB__FE_US__2630A1B7] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NULL CONSTRAINT [DF__TDDISP_CB__CO_US__2724C5F0] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NULL CONSTRAINT [DF__TDDISP_CB__FE_US__2818EA29] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDDISP_CBAK] ADD CONSTRAINT [PK__TDDISP_C__CBFE097551CFF82A] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_PROV], [CO_TIPO_DOCU], [NU_DOCU_PROV], [NU_CORR]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TDDISP_CBAK] ADD CONSTRAINT [FK__TDDISP_CBAK__4925A390] FOREIGN KEY ([CO_EMPR], [CO_PROV], [CO_TIPO_DOCU], [NU_DOCU_PROV]) REFERENCES [dbo].[TMDOCU_PROV] ([CO_EMPR], [CO_PROV], [CO_TIPO_DOCU], [NU_DOCU_PROV])
GO
